/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kleintjes.creational.builder_pattern.model;

import com.kleintjes.creational.builder_pattern.MealBuilder;

/**
 *
 * @author Hughan.Kleintjes.hughanK@gmail.com
 */
public class MealDirector {
    
    private MealBuilder mealBuilder = null;
    
    public MealDirector(MealBuilder mealBuilder) {
        this.mealBuilder = mealBuilder;
    }
    
    public void constructMeal() {
        mealBuilder.buildDrink();
        mealBuilder.buildMainCourse();
        mealBuilder.buildSide();
    }
    
    public Meal getmeal() {
        return mealBuilder.getMeal();
    }
    
}
